package com.example.demo.domain;

public class FizzBuzz {

  public String fizzBuzz(int inputNumber){
    String result = "";
    if(canCountByThree(inputNumber)){
      result = result + "fizz";
    }
    if(canCountByFive(inputNumber)){
      result = result + "buzz";
    }
    return result;
  }

  protected boolean canCountByThree(int inputNumber){
    return inputNumber%3 == 0;
  }

  protected boolean canCountByFive(int inputNumber){
    return inputNumber%5 == 0;
  }

}
